

class Project {
	 
    static hasMany = [tasks : Task, projectTeam: ProjectTeam]

    String name
    String description
    Date startDate
    Date endDate
    int unitPerPhase
    int unitOfWork

    Date dateCreated
    Date lastUpdated
	 
    static constraints = {
        name(unique: true, blank: false)
        unitPerPhase(blank: false)
    }
}
